package cn.ckx.coding.properties;

import lombok.*;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * api相关属性配置
 * 
 * @author kunxin.cai
 **/
@Data
@Component
@ConfigurationProperties(prefix = "app")
public class AppProperties {
    
    private TokenProperties login; 
    
    @Data
    public static class TokenProperties{

        private boolean enabled = true;
        
        private String header;
        
        private Long expire; 
        
        private String userId;
        
    }
}
